import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home.vue'
import sliderPath from './silderPath.js';//导入silder路由
import Login from '@/views/login.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/login',
      name:'login',
      meta:{
        name:'登录',
      },
      component:Login,
    },
    {
      path: '/',
      // name: 'HelloWorld',
      name:'Home',
      meta:{
        name:"首页",
        auth: false,
      },
      component: Home,
      children:sliderPath
}
]
})
